import Vue from "vue";
import Vuex from "vuex";
import home from "./home"
import search from "./search"
import detail from "./detail"
import shopCart from "./shopCart"
import login from "./login"
import trade from "./trade"
Vue.use(Vuex)

export default new Vuex.Store({
    // vuex中模块式开发
    modules: {
        home,
        search,
        detail,
        shopCart,
        login,
        trade
    }
})